import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
const router = new Router({
    routes: [
        {
            path: '/login',
            name: 'Login',
            component: () => import('@/pages/maneuver/view/login'),
            meta: {
            }
        },
        {
            path: '/',
            name: 'layout',
            redirect: '/drill-index',
            component: () => import('@/layout'),
            children: [
                {
                    path: '/zuozhan-date',
                    name: 'ZuozhanDate',
                    component: () => import('@/pages/maneuver/view/zuozhan-date'),
                    meta: {
                    }
                },
                {
                    path: '/drill-index',
                    name: 'DrillIndex',
                    component: () => import('@/pages/maneuver/view/drill'),
                    meta: {
                    }
                },
                {
                    path: '/drill-daodiao-detail/:id',
                    name: 'DrillDetail',
                    component: () => import('@/pages/maneuver/view/drill-detail/index'),
                    meta: {
                    }
                },
                {
                    path: '/drill-canzhan-detail/:id',
                    name: 'DrillDetail2',
                    component: () => import('@/pages/maneuver/view/drill-detail/index2'),
                    meta: {
                    }
                },
                {
                    path: '/drill-guanzhan-detail/:id',
                    name: 'DrillDetail3',
                    component: () => import('@/pages/maneuver/view/drill-detail/index3'),
                    meta: {
                    }
                },
                {
                    path: '/drill-xiangding-publish/:id',
                    name: 'DrillDetailXiangdingPublish',
                    component: () => import('@/pages/maneuver/view/drill-detail/release-xiangding'),
                    meta: {
                    }
                },
                {
                    path: '/drill-teqing-publish/:id',
                    name: 'DrillDetailTeqingPublish',
                    component: () => import('@/pages/maneuver/view/drill-detail/release-teqing'),
                    meta: {
                    }
                },
                {
                    path: '/drill-options-history/:id',
                    name: 'DrillOptionsHistory',
                    component: () => import('@/pages/maneuver/view/drill-detail/options-history'),
                    meta: {
                    }
                },
                {
                    path: '/want-to-be-index',
                    name: 'WantToBeIndex',
                    component: () => import('@/pages/maneuver/view/want-to-be'),
                    meta: {
                    }
                },
                {
                    path: '/drill-setting-index',
                    name: 'DrillSettingIndex',
                    component: () => import('@/pages/maneuver/view/drill-setting'),
                    meta: {
                    }
                },
                {
                    path: '/drill-start-index',
                    name: 'DrillStartIndex',
                    component: () => import('@/pages/maneuver/view/drill-start'),
                    meta: {
                    }
                },
                // 地图管理
                {
                    path: '/map-component-index',
                    name: 'MapComponentIndex',
                    component: () => import('@/pages/maneuver/view/map-component'),
                    meta: {
                    }
                },
                {
                    path: '/map-index',
                    name: 'MapIndex',
                    component: () => import('@/pages/maneuver/view/map'),
                    meta: {
                    }
                },
            ]
        },
        
    ]
});
export default router
